package com.smarthome.ipc.command;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.smarthome.domain.ipc.IpcCodeEnum;
import com.smarthome.domain.ipc.IpcConstants;
import com.smarthome.domain.ipc.IpcResponse;
import com.smarthome.domain.ipc.req.HkIpcResidenceDoorOpRequest;
import com.smarthome.ipc.hk.HKMainService;

/**
 * 海康门口机 -初始化方法 注:用于初始化小区内门口机
 * 
 * @author add by denghw 2015/10/13
 *
 */
@Service(IpcConstants.IPC_COMMAND_RESIDENCE_DOOR_INIT_HK)
public class HkNetDvrInit extends HKMainService {

	@Override
	protected void doCmd(HkIpcResidenceDoorOpRequest request, IpcResponse<?> response) {
		// TODO Auto-generated method stub
		response.setIpcCodeObj(IpcCodeEnum.SYSTEM_SUCCESS);
	}

	// 获取门口机对象集
	public Map<String, Object> getLocalCache() {
		return localCache;
	}

	// 向云后台服务回写日志
	public void rtnBackErrMsg(String sn, String cmd, String errCode, String errMsg) {
		super.rtnBackErrMsg(sn, cmd, errCode, errMsg);
	}

}
